<!DOCTYPE html>
<html>

<head>
    <title>WebDataRocks</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link href="webdatarocks.min.css" rel="stylesheet" />
    <script src="webdatarocks.toolbar.min.js"></script>
    <script src="webdatarocks.js"></script>
</head>

<body>
    <div id="wdr-component"></div>
    <script>
        function createReport(data,slice) {
            let arr = JSON.stringify(data)
            arr = JSON.parse(arr)
            var pivot = new WebDataRocks({
                container: "#wdr-component",
                toolbar: true,
                report: {
                    
                    dataSource: {
                        data: arr
                    },
                    slice: slice
                }
            });
        }
    </script>
</body>

</html>